package day10.task;

import java.util.*;

public class Taskfive {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        show(a);
//        show1(a);

    }

    public static void show(String a) {
        String[] split = a.split("");
//        Arrays.sort(split);
        List<String> list = Arrays.asList(split);
        Collections.sort(list);
        Collections.reverse(list);//冒泡 交换
        for (String s : list) {
            System.out.print(s);
        }
    }

    public static void show1(String a) {//有错
        String[] split = a.split("");
        Arrays.sort(split);
        Integer integer = Integer.valueOf(a);
        int number = integer;
        int b;
        int newOne=0;
        while(number!=0){
            b=number%10;
            number=number/10;
            newOne=newOne*10+b;
        }
        System.out.println(newOne);

    }
}
